home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1996 July / Macworld (1996-07).dmg / System 7.5 Update 2.0 / FileMaker Pro 3.0 CD Extras / FileMaker And Apple Events / Syntax Examples / Events / Create Examples < prev    next >
Text File  |  1996-01-25  |  1KB  |  38 lines

  1. tell application "FileMaker Pro"
  2.     --creating records
  3.     create record
  4.     create record at database 2
  5.     create record at first database
  6.     create record with data "data"
  7.     create record at database 2 with data "test2"
  8.     create record at first database with data "test3"
  9.     create record with data {"more data", "abc"}
  10.     create record at database 2 with data {"test2", "abc"}
  11.     create record at first document with data {"test3", "abc"}
  12.     create record at database "Test2" with data {"test4", "abc"}
  13.     
  14.     --creating multiple records
  15.     repeat 5 times
  16.         create record
  17.     end repeat
  18.     
  19.     
  20.     --creating requests
  21.     create request
  22.     create request with data "test3"
  23.     create request with data {"test3", "abc"}
  24.     create request with properties {ommitted:true}
  25.     create request with data {"test3", "abc"} ¬
  26.         with properties {omitted:true}
  27.     
  28.     --creating multiple requests
  29.     delete every request
  30.     repeat 5 times
  31.         create request
  32.     end repeat
  33.     
  34.     --creating menus
  35.     create menu with properties {name:"Custom Menu", ID:123, enabled:false}
  36.     create menu item with properties {name:"Custom Menu Item", ID:321, enabled:true}
  37.     
  38. end tell